[% #This is a TT comment. The '-' at the end "chomps" the newline. You won't -%]
[% #see this "chomping" in your browser because HTML ignores blank ines, but - %]
[% #it WILL eliminate a blank line if you view the HTML source. It's purely -%]
[%- #optional, but both the begining and the ending TT tags support chomping. -%]
[% #Provide a title -%]
[% META title = 'Book List' -%]
<table>
    <tr>
        <th>Title</th>
        <th>Rating</th>
        <th>Author(s)</th>
    </tr>
    [% #Display each book in a table row %]
    [% FOREACH book IN books %]
        <tr>
            <td>[% book.title %]</td>
            <td>[% book.rating %]</td>
            <td>
                [% tt_authors = [];tt_author.push(author.last_name) FOREACH author = book.authors %]
                ([% tt_authors.size | html %])
                [% tt_authors.jion(',') | html %]
            </td>
        </tr>
    [% END -%]
</table>
